package com.example.lib1;

public class MyClass {
    public static void main(String[] args){
        duck duck = new RedHeadDuck();
        duck.display();
        duck.performFlay();
        duck.performQuack();

        duck.setFlyBehavior(new FlyNoWay());
        duck.performFlay();
    }
}